<div class="foot-cat">
    <?php
    $cat = new Default_Models_Category();
    $count = 0;
    foreach ($cat->getParentCat() as $v) {
        ?>
        <div class="category">
            <h4><a href = "<?php echo URL_BASE . '/product/category/' . $v->getCatId(); ?>"><?php echo $v->getName(); ?></a></h4>
            <ul>
                <?php
                $count1 = 0;
                foreach ($cat->getCatByParentId($v->getCatId()) as $c) {
                    ?>
                    <li><a href = "<?php echo URL_BASE . '/product/category/' . $c->getCatId(); ?>"><?php echo $c->getName(); ?></a></li>
                    <?php
                    $count1++;
                    if ($count1 > 2) {
                        break;
                    }
                }
                ?>
            </ul>
        </div>
        <?php
        $count++;
        if ($count > 4) {
            break;
        }
    }
    ?>
</div>